package com.njmaomao.gj.pyot.domain.wechat;

import lombok.Getter;
import lombok.Setter;

/**
 * 支付配置
 *
 */
@Getter
@Setter
public class PayConfig {

    // 应用ID
    private String appid;

    // 商户号
    private String mchId;

    // 加密参数的秘钥key
    private String key;

    // 支付成功通知地址
    private String payNotifyUrl;

    // 退款成功通知地址
    private String refundNotifyUrl;

    // 交易类型
    private String tradeType;

    // 证书路径
    private String certLocal;

    public PayConfig copy() {
        PayConfig newPayConfig = new PayConfig();
        newPayConfig.appid = this.appid;
        newPayConfig.mchId = this.mchId;
        newPayConfig.key = this.key;
        newPayConfig.payNotifyUrl = this.payNotifyUrl;
        newPayConfig.refundNotifyUrl = this.refundNotifyUrl;
        newPayConfig.tradeType = this.tradeType;
        newPayConfig.certLocal = this.certLocal;
        return newPayConfig;
    }


}
